package com.visikard.item;

import java.io.Serializable;

import org.json.JSONObject;

import android.os.Parcel;

public class ItemGiftKard implements Serializable {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    String imageSpecial;
    String textImage2;
    long idCoupon;
    String conditions;
    String expireDate;
    long fkUser;
    String merchantName;
    long fkKard;
    String latitude;
    String longitude;
    long categoryCard;
    int campaignType;
    String imageKard;
    String specailDetail;
    long idCampaignSpecail;
    String textImage1;
    String icons;
    String campaignDetail;
    String aboutBusiness;
    String logos;
    String address;
    String location;
    
    public ItemGiftKard() {}
    
    public ItemGiftKard( JSONObject job ) {
    	if(job == null)
    		return;
    	
    	imageSpecial = job.optString("imageSpecial", "");
    	if(imageSpecial == null || imageSpecial.equals("null"))
    		imageSpecial = "";
        textImage2 = job.optString("textImage2", "");
        if(textImage2 == null || textImage2.equals("null"))
        	textImage2 = "";
        idCoupon = job.optLong("idCoupon", -1);
        conditions = job.optString("conditions", "");
        if(conditions == null || conditions.equals("null"))
        	conditions = "";
        expireDate = job.optString("expireDate", "");
        if(expireDate == null || expireDate.equals("null"))
        	expireDate = "";
        fkUser = job.optLong("fkUser", -1);
        merchantName = job.optString("merchantName", "");
        if(merchantName == null || merchantName.equals("null"))
        	merchantName = "";
        fkKard = job.optLong("fkKard", -1);
        latitude = job.optString("latitude", "");
        if(latitude == null || latitude.equals("null"))
        	latitude = "";
        longitude = job.optString("longitude", "");
        if(longitude == null || longitude.equals("null"))
        	longitude = "";
        categoryCard = job.optLong("categoryCard", -1);
        campaignType = job.optInt("campaignType", -1);
        imageKard = job.optString("imageKard", "");
        if(imageKard == null || imageKard.equals("null"))
        	imageKard = "";
        specailDetail = job.optString("specailDetail", "");
        if(specailDetail == null || specailDetail.equals("null"))
        	specailDetail = "";
        idCampaignSpecail = job.optLong("idCampaignSpecail", -1);
        textImage1 = job.optString("textImage1", "");
        if(textImage1 == null || textImage1.equals("null"))
        	textImage1 = "";
        icons = job.optString("icons", "");
        if(icons == null || icons.equals("null"))
        	icons = "";
        campaignDetail = job.optString("campaignDetail", "");
        if(campaignDetail == null || campaignDetail.equals("null"))
        	campaignDetail = "";
        aboutBusiness = job.optString("aboutBusiness", "");
        if(aboutBusiness == null || aboutBusiness.equals("null"))
        	aboutBusiness = "";
        logos = job.optString("logos", "");
        if(logos == null || logos.equals("null"))
        	logos = "";
        address = job.optString("address", "");
        if(address == null || address.equals("null"))
        	address = "";
        location = job.optString("location", "");
        if(location == null || location.equals("null"))
        	location = "";
    	
    }

	public String getImageSpecial() {
		return imageSpecial;
	}

	public String getTextImage2() {
		return textImage2;
	}

	public long getIdCoupon() {
		return idCoupon;
	}

	public String getConditions() {
		return conditions;
	}

	public String getExpireDate() {
		return expireDate;
	}

	public long getFkUser() {
		return fkUser;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public long getFkKard() {
		return fkKard;
	}

	public String getLatitude() {
		return latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public long getCategoryCard() {
		return categoryCard;
	}

	public int getCampaignType() {
		return campaignType;
	}

	public String getImageKard() {
		return imageKard;
	}

	public String getSpecailDetail() {
		return specailDetail;
	}

	public long getIdCampaignSpecail() {
		return idCampaignSpecail;
	}

	public String getTextImage1() {
		return textImage1;
	}

	public String getIcons() {
		return icons;
	}

	public String getCampaignDetail() {
		return campaignDetail;
	}

	public String getAboutBusiness() {
		return aboutBusiness;
	}

	public String getLogos() {
		return logos;
	}

	public String getAddress() {
		return address;
	}

	public String getLocation() {
		return location;
	}
}
